import matplotlib.pyplot as plt


a = 0b10
b = ~a + 0b1
print(b)
print(b.bit_length())